<template>
  <el-dialog :visible.sync="visible" v-dialogDrag :title="moduleTitle" :close-on-click-modal="false" class="tl-dialog" width="1200px" @open="open" @close="close" :append-to-body="true" :modal-append-to-body="true">
    <role-user-list ref="roleUserList" type="list" :roleData="roleCode" :roleId="roleId" @refresh="doRefresh"></role-user-list>
    <div slot="footer" class="dialog-footer"></div>
  </el-dialog>
</template>

<script>
/** mixins */
import { mixin_edit } from "@tapui/mixins/mixin_edit"
/** 子组件 */
import roleUserList from "./index"
/** 工具类 */
import { putAction, getAction, postAction, deleteAction } from "@tapui/utils/http"
/** VUE配置 */
export default {
  mixins: [mixin_edit],
  components: { roleUserList },
  data() {
    return {
      moduleTitle: "配置人员",
      url: {
        // 额外的url
      },
      personData: {},
      sorterInfo: {
        sidx: "createon",
        sord: "desc"
      }
    }
  },
  props: {
    roleCode: {
      type: String,
      default: ""
    },
    roleId: {
      type: Number,
      default: 0
    }
  },
  methods: {
    loaded() {},
    open() {
      this.$nextTick((_) => {
        this.$set(this.$refs.roleUserList.filtersInfo, "qry_roleid", this.roleId)
        this.$refs.roleUserList.doQuery()
      })
    }
  }
}
</script>
